﻿<div ng-controller="HomeController">
    <div ng-if="!CheckLogin()">
        <h1>Please Login</h1>
        <input class="form-control form-inline" ng-model="user.username" placeholder="Username" />
        <input class="form-control form-inline" ng-model="user.password" placeholder="Password" />
        <button class="btn btn-primary" ng-click="login()">Login</button>
        <h3><a href="#/register">Register</a></h3>
    </div>
    <div ng-if="CheckLogin()">
        <h1>You Are Logged In</h1>
        <button class="btn btn-primary" ng-click="logout()">Logout</button>
    </div>
</div>